package io.renren.modules.mvs.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 违章记录表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2025-03-30 17:08:24
 */
@Data
@TableName("mvs_violation")
public class ViolationEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 违章表id
	 */
	@TableId
	private Long id;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 机动车id
	 */
	private Long vehicleId;
	/**
	 * 违章时间
	 */
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date violationTime;
	/**
	 * 违章地点
	 */
	private String violationAddress;
	/**
	 * 违章类型id
	 */
	private Long violationTypeId;
	/**
	 * 说明
	 */
	private String description;
	/**
	 * 缴费截止时间（time+15天）
	 */
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date violationDeadline;
	/**
	 * 处理状态
	 */
	private String violationStatus;
	/**
	 * 创建时间
	 */
	private Date createTime;

}
